package work1.work2.pet;

import javax.xml.ws.Action;

public class Dog extends Animal {
    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    void bite(){
        System.out.println(name+"在咬人");
    }
    @Override
    void eating(){
        System.out.println(name+"在吃东西");
    }
}
